<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
<title><?php echo C('WEB_SITE_TITLE');?></title>
<link href="/Crawler/Public/static/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="/Crawler/Public/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="/Crawler/Public/static/bootstrap/css/docs.css" rel="stylesheet">
<link href="/Crawler/Public/static/bootstrap/css/onethink.css" rel="stylesheet">
<link href="/Crawler/Public/static/icon/css/font-awesome.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/Crawler/Public/Home/css/douban.css" />

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="/Crawler/Public/static/bootstrap/js/html5shiv.js"></script>
<![endif]-->

<!--[if lt IE 9]>
<script type="text/javascript" src="/Crawler/Public/static/jquery-1.10.2.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script type="text/javascript" src="/Crawler/Public/static/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="/Crawler/Public/static/bootstrap/js/bootstrap.min.js"></script>
<!--<![endif]-->
<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->
<?php echo hook('pageHeader');?>

	<style>
		
		.container li {line-height: 29px;}
		th,td{font-size: 14px;}
		thead{background: #DED8D8;}
		th{text-align: center!important;}
		.Pagination a:hover,.current{background-color: #DCDADA;border: 1px solid #DCDADA;color: #ffffff; }
		.Pagination{float: right;height: auto;_height: 45px; line-height: 20px;margin-right: 15px;_margin-right: 5px; color:#565656;margin-top: 10px;_margin-top: 20px; clear:both;}
		.Pagination a,.Pagination span{ font-size: 14px;text-decoration: none;display: block;float: left;color: #565656;border: 1px solid #ccc;height: 34px;line-height: 34px;margin: 0 2px;width: 34px;text-align: center;}
		.footer{padding: 20px;}
		#info{width: 500px;float: left;margin-left: 20px;font-size: 14px;max-width: 600px;}
		#info>span{line-height: 25px;}
		#film_info{float: left;width: 600px;margin-left: 20px;font-size: 13px;margin-top: 20px;}
		#film_info h4{font-size: 20px;height: inherit;margin-top: 15px;}
		#interest_sectl{float: left;width: 600px;margin-left: 20px;font-size: 14px;margin-top: 20px;}
		#download_link{border:1px solid #000;}
		.well-large{padding: 12px!important;}
		.well{margin: 10px 0 10px 0!important;}
   		.charts_div{border: 1px solid #fff;width:100%;height:600px!important;padding: 50px 0 40px 0;margin-bottom: 100px;}
 
/*		#download_link ul li{float: left;margin-left: 22px;font-size: 14px;}
*/		
	</style>
</head>
<body>
	<!-- 头部 -->
	<div class="navbar navbar-inverse navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			 <a class="brand" href="<?php echo U('index/index');?>">主题爬虫设计</a>
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <li>
                    	<a href="<?php echo U('Index/index');?>">首页</a>
                    </li>
                </ul>
            </div>
			 <div class="nav-collapse collapse">
                <ul class="nav">
                    <li>
                    	<a href="<?php echo U('Zuixin/index');?>">最新电影</a>
                    </li>
                </ul>
            </div>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <li>
                    	<a href="<?php echo U('Guonei/index');?>">国内电影</a>
                    </li>
                </ul>
            </div>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <li>
                    	<a href="<?php echo U('Oumei/index');?>">欧美电影</a>
                    </li>
                </ul>
            </div>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <li>
                    	<a href="<?php echo U('Rihan/index');?>">日韩电影</a>
                    </li>
                </ul>
            </div>
			<div class="nav-collapse collapse">
                <ul class="nav">
                    <li>
                    	<a href="<?php echo U('Zonghe/index');?>">综合电影</a>
                    </li>
                </ul>
            </div>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <li>
                    	<a href="<?php echo U('Analyse/index');?>">数据分析</a>
                    </li>
                </ul>
            </div>


		</div>
	</div>
	
</div>
	<!-- /头部 -->
	
	<!-- 主体 -->
	
	<header class="jumbotron subhead" id="overview" >
        <div class="container" >
            <form action="<?php echo U('Index/index');?>" method="get">
			  <div class="form-group" style="text-align: center;">
			    <label for="exampleInputEmail1"></label>
			    <input type="text" name="name" class="form-control" id="text" placeholder="请输入电影名称" value="<?php echo I('name');?>" style="width: 40%;height: 30px;margin-bottom: 0!important;border-radius: 4px 0 0 4px ;">
			    	<button type="submit" class="btn btn-default" style="height: 40px;border-radius: 0 4px 4px 0;">
			    		<i class="fa fa-search"></i>
			    		搜索
			    	</button>
			  </div>
			  
			  
			</form>
            <p class="lead"></p>
        </div>
    </header>

<div id="main-container" class="container">
    <div class="row">
        
        <!-- 左侧 nav
        ================================================== -->
            <div class="span3 bs-docs-sidebar">
                
                <ul class="nav nav-list bs-docs-sidenav">
                   
                </ul>
            </div>
        
        
	<div class="container">
		<?php if($data == ''): ?><h3 style="text-align: center;width: 100%;float: left;">-_-!未搜索到与 "<?php echo I('name');?>" 相关的电影内容！</h3>
			<?php else: ?>
			<div class="well well-large">
  				共<?php echo ($count); ?>条记录！
			</div>
			<table class="table table-table-hover" >
			<thead>
				<tr>
					<th>id</th>
					<th>电影名称</th>
					<th>电影分类</th>
					<th>电影类型</th>
					<th>点击次数</th>
					<th>发布时间</th>
					<th>下载</th>
				</tr>
				
			</thead>
			<tbody>
				<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
						<th><?php echo ($vo["id"]); ?></th>
						<th><?php echo ($vo["film_name"]); ?></th>
						<th><?php echo ($vo["film_type"]); ?></th>
						<th><?php echo ($vo["type"]); ?></th>
						<th><?php if($vo["click_num"] != null): echo ($vo["click_num"]); ?> 次<?php else: ?>0 次<?php endif; ?></th>
						<th><?php echo ($vo["film_publish_time"]); ?></th>
						<th><a href="<?php echo U('Download/download?id='.$vo['id'].'&film_name='.$vo['film_name_real']);?>"><i class="fa fa-download"></i></a></th>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
				
			</tbody>
		</table>
		<div class="Pagination" > 
		  <?php echo ($page); ?>
		</div><?php endif; ?>
		
	</div>
	
	

    </div>
</div>

<script type="text/javascript">
    $(function(){
        $(window).resize(function(){
            $("#main-container").css("min-height", $(window).height() - 343);
        }).resize();
    })
</script>
	<!-- /主体 -->
	

	<!-- 底部 -->
	
    <!-- 底部
    ================================================== -->
    <footer class="footer">
      <div class="container">
          <p> <strong>CopyRight © EasonHan 2015</strong></p>
      </div>
    </footer>



	
 <!-- 用于加载js代码 -->
<!-- 页面footer钩子，一般用于加载插件JS文件和JS代码 -->
<?php echo hook('pageFooter', 'widget');?>
<div class="hidden"><!-- 用于加载统计代码等隐藏元素 -->
	
</div>

	<!-- /底部 -->
</body>
</html>